/* Copyright (c) 2006 YourNameHere
   See the file LICENSE.txt for licensing information. */


function CssStudy(){
    //setTimeout(function(){nhnCssStudy.init();}, 10);
    //setTimeout(function(){nhnCssStudy.init();}, 3000);
};

//window.addEventListener("load", function(){that.onload();}, false);

CssStudy.prototype.onload1 = function(){
    
    setTimeout(function(){nhnCssStudy.init();}, 0); 
}

CssStudy.prototype.init = function(){
    var list = document.getElementById("myListBox");
    
    gems = [  {gem: "Ruby", Price: "$3,500 - $4,600"},
      {gem: "Emerald", Price: "$700 - 4,250"},
      {gem: "Blue Sapphire", Price: "$3,400 - $4,500"},
      {gem: "Diamond", Price: "$5,600 - $16,000"}  ];
     
     for(var i=0; i<gems.length; ++i)
     {
        var row = document.createElement("listitem");
        row.style.listStyleImage = "chrome://nhnjapanpartnertoolbar/skin/user.png";
        
        var cell1 = document.createElement("listcell");
        cell1.setAttribute("label", gems[i].gem);
        
        var cell2 = document.createElement("listcell");
        cell2.setAttribute("label", gems[i].Price);
        
        row.appendChild(cell1);
        row.appendChild(cell2);
        list.appendChild(row);
     }
}

